<?php
    require '../config.php';
    $id = $_POST['id'];
    $title = $_POST['title'];
	$content = $_POST['content'];
	$image = $_POST['image'];
	$addDate = date('Y-m-d');

	$result = mysql_query("update article a set a.title = '".$title."',a.content = '".$content."',a.image = '".$image."',a.addDate = '".$addDate."' where a.id = ".$id."");
	echo $result;
?>
